<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>单选-复选</title>
  </head>
  <body>
    <div id="app">
      <h2>与事件修饰符类似，v-model也有修饰符，用于控制数据同步的时机。</h2>
      <input type="text" v-model.lazy="message" />
      <p :style="color">{{message}}</p>
    </div>
  </body>
  <script src="./js/vue.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/vuex/3.2.0/vuex.min.js"></script>
  <script>
    var app = new Vue({
      el: "#app",
      data: {
        message: "",
        color: {
          color: "blue",
          fontSize: 30 + "px"
        }
      }
    })
  </script>
</html>
